package com.yyysj.friend.controller;

import com.yyysj.common.core.domain.PageQueryDTO;
import com.yyysj.common.core.domain.TableDataInfo;
import com.yyysj.friend.service.IUserMessageService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
@RequiredArgsConstructor
public class UserMessageController {

    private final IUserMessageService userMessageService;

    @GetMapping("/list")
    public TableDataInfo list(PageQueryDTO dto) {
        return userMessageService.list(dto);
    }
}
